<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" type="text/css" href="../bootstrap-4.3.1-dist/css/bootstrap.min.css">
    <title>内容图片</title>
</head>
<body>

<!-- 设置轮播图：带控件-->
<div id="c1" class="carousel slide w-50 m-auto" data-ride="carousel">
    <div class="carousel-inner">
        <div class="carousel-item active">
            <img src="img/img01.jpg" class="d-block w-100" alt="...">
        </div>
        <div class="carousel-item">
            <img src="img/img02.jpg" class="d-block w-100" alt="...">
<!--            设置轮播图中的字幕-->
            <div class="carousel-caption d-none d-md-block">
                <span style="color:black;">你好实践基地哦</span>
            </div>
        </div>
        <div class="carousel-item">
            <img src="img/img03.jpg" class="d-block w-100" alt="...">
        </div>
    </div>
<!--    button按钮，两边具有白色透明东西-->
<!--    <button class="carousel-control-prev" type="button" data-target="#c1"  data-slide="prev">-->
<!--        <span class="carousel-control-prev-icon" aria-hidden="true"></span>-->
<!--        <span class="sr-only">Previous</span>-->
<!--    </button>-->
<!--    <button class="carousel-control-next" type="button" data-target="#c1"  data-slide="next">-->
<!--        <span class="carousel-control-next-icon" aria-hidden="true"></span>-->
<!--        <span class="sr-only">Next</span>-->
<!--    </button>-->
    <a class="carousel-control-prev" href="#c1" role="button" data-slide="prev">
        <span class="carousel-control-prev-icon" aria-hidden="true"></span>
    </a>
    <a class="carousel-control-next" href="#c1" role="button" data-slide="next">
        <span class="carousel-control-next-icon" aria-hidden="true"></span>
    </a>
<!--    设置指标-->
    <ol class="carousel-indicators">
        <li data-target="#c1" data-slide-to="0" class="active"></li>
        <li data-target="#c1" data-slide-to="1"></li>
        <li data-target="#c1" data-slide-to="2"></li>
    </ol>
</div>
<br/>
<br/>
<br/>
<div id="c2" class="carousel slide w-50 m-auto carousel-fade" data-ride="carousel">
    <div class="carousel-inner">
        <div class="carousel-item active">
            <img src="img/img01.jpg" class="d-block w-100" alt="...">
        </div>
        <div class="carousel-item">
            <img src="img/img02.jpg" class="d-block w-100" alt="...">
<!--            设置轮播图中的字幕-->
            <div class="carousel-caption d-none d-md-block">
                <span style="color:black;">你好实践基地哦</span>
            </div>
        </div>
        <div class="carousel-item">
            <img src="img/img03.jpg" class="d-block w-100" alt="...">
        </div>
    </div>
    <a class="carousel-control-prev" href="#c2" role="button" data-slide="prev">
        <span class="carousel-control-prev-icon" aria-hidden="true"></span>
    </a>
    <a class="carousel-control-next" href="#c2" role="button" data-slide="next">
        <span class="carousel-control-next-icon" aria-hidden="true"></span>
    </a>
<!--    设置指标-->
    <ol class="carousel-indicators">
        <li data-target="#c2" data-slide-to="0" class="active"></li>
        <li data-target="#c2" data-slide-to="1"></li>
        <li data-target="#c2" data-slide-to="2"></li>
    </ol>
</div>

<script src="../bootstrap-4.3.1-dist/js/jquery-1.7.2.js"></script>
<script src="../bootstrap-4.3.1-dist/js/bootstrap.js"></script>
<script src="../bootstrap-4.3.1-dist/js/popper.js"></script>
<!-- script使用JavaScript代码的时候，标签必须放在body中，才会生效-->
<script>
    <!--    设置每隔多少时间，单位毫秒，自动轮播-->
    $('.carousel').carousel({
        interval: 100
    })
</script>
</body>
</html>